[BLKTAP] Fix SMP debugging assert failures in blktap
authorAndrew Warfield <andy@xensource.com>
Thu, 28 Sep 2006 19:03:01 +0000 (12:03 -0700)
committerAndrew Warfield <andy@xensource.com>
Thu, 28 Sep 2006 19:03:01 +0000 (12:03 -0700)
commit577a31b661349769ba54378cb2979a9d3ecad4ed
treeeae6ccf3bcf9122615be0e63ff8b3a9c9605a5b0
parenta42134af16e5dfca13b674b94a12b22afd255d1c
[BLKTAP] Fix SMP debugging assert failures in blktap
blktap is calling non-atomic kernel functions with irqs disabled, which
hits various kernel debug traps if those are enabled.  The problem is
req_increase(), which takes the pending_free_lock.

This function is currently only ever called from module initialiation,
where it is impossible for it to race against anything else.  Its
companion, req_decrease(), is not called at all.

Fix by removing the offending locking from req_increase() and, while
we're at it, remove req_decrease() entirely.

Signed-off-by: Stephen Tweedie <sct@redhat.com>
linux-2.6-xen-sparse/drivers/xen/blktap/blktap.c